package com.zkaler.common.constants.global;

/**
 * Created by khiker on 2016/8/1.
 */
public interface CookieConstants {
    /** cokkie保存一年时的maxAge值 */
    public static final int ONE_YEAR_AGE = 31536000;
    /** cokkie保存一天时的maxAge值 */
    public static final int ONE_DAY_AGE = 86400;
    /** cokkie保存一月时的maxAge值 */
    public static final int ONE_MONTH_AGE = 2592000;
    /** cokkie保存一小时时的maxAge值 */
    public static final int ONE_HOUR_AGE = 3600;
    /** cokkie保存在浏览器进程的maxAge值 */
    public static final int NOW_SESSION_AGE = 0;

    public static final int DEFAULT_MAX_AGE = 604800; // __s默认生存一周(单位为秒)

    public static final String DEFAULT_COOKIE_DEMON = ".zkaler.com";

    public static final String DEFAULT_COOKIE_PATH = "/";

    public static final String DEFAULT_SESSION_COOKIE_NAME = "_JESESSION";

    public static final String DEFAULT_SESSION_TOKEN_NAME = "_TOKEN";
    // 默认半个小时(单位秒)
    public static final int DEFAULT_SESSION_SAVE_TIME = 1800;
}
